<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
  <meta name="generator" content=
  "HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org">

  <title>strpbrk</title>
  <link href="../cppreference.css" rel="stylesheet" type="text/css">
</head>

<body>
<table>
  <tr>
  <td>
  <div class="body-content">

  <div class="header-box">
    <a href="../index.html">cppreference.com</a> &gt; <a href=
    "index.html">Standard C String and Character</a> &gt; <a href=
    "strpbrk.html">strpbrk</a>
  </div>

  <div class="name-format">
    strpbrk
  </div>

  <div class="syntax-name-format">
    Syntax:
  </div>
  <pre class="syntax-box">
  #include &lt;string.h&gt;
  char* strpbrk( const char* str1, const char* str2 );
</pre>

  <p>The function strpbrk() returns a pointer to the first ocurrence in
  <em>str1</em> of any character in <em>str2</em>, or
  <strong>NULL</strong> if no such characters are present.</p>

  <div class="related-name-format">
    Related topics:
  </div>

  <div class="related-content">
    (C++ Algorithms) <a href=
    "../cppalgorithm/find_first_of.html">find_first_of</a><br>
    <a href="strchr.html">strchr</a><br>
    <a href="strcspn.html">strcspn</a><br>
    <a href="strrchr.html">strrchr</a><br>
    <a href="strspn.html">strspn</a><br>
    <a href="strstr.html">strstr</a><br>
    <a href="strtok.html">strtok</a>
  </div>
  </div>
  </td>
  


  </tr>
  </table>
</body></html>
